﻿package com.firewolf.iteratorAndComponent.combine;

import java.util.Iterator;

public class MyMenuItem extends MenuComponent{
	private String name ;
	private String description ;
	private boolean vegetarian ;
	private double price ;
	public MyMenuItem(String name, String description, boolean vegetarian,
			double price) {
		this.name = name;
		this.description = description;
		this.vegetarian = vegetarian;
		this.price = price;
	}
	@Override
	public String getName() {
		return name ;
	}
	@Override
	public String getDescription() {
		return description ;
	}
	@Override
	public double getPrice() {
		return price ;
	}
	@Override
	public boolean isVegetarian() {
		return vegetarian ;
	}
	@Override
	public void print() {
		System.out.println("MenuItem: "+getName()+ " , "+getDescription()+" , "+isVegetarian()+" , "+getPrice());
	}
	@SuppressWarnings("rawtypes")
	@Override
	public Iterator getIterator() {
		return new NullIterator();
	}
	
	
}
